package com.example.myapplication

import com.example.myapplication.my_view_model.BasketBallModel
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.ViewModelProvider
import com.example.myapplication.databinding.ActivityBasketballBinding

class BasketballActivity : AppCompatActivity() {

    lateinit var viewBinding: ActivityBasketballBinding
    lateinit var viewModel: BasketBallModel
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        viewBinding = DataBindingUtil.setContentView<ActivityBasketballBinding>(this,R.layout.activity_basketball)
        viewModel = ViewModelProvider(this).get(BasketBallModel::class.java)
        viewBinding.data = viewModel
        viewBinding.lifecycleOwner = this
    }
}